package edu.sctu.jarime.june.day20150623.util;

import edu.sctu.jarime.june.day20150623.appbean.JsonAppbean;

/**
 * Created by user19 on 2015/6/25.
 */
public class SystemOutUtil {

    /**
     * 将解析好的Json的数据一一输出
     * @param jsonAppbean
     */
    public static void sysOut(JsonAppbean jsonAppbean){

        for (int i = 0; i < jsonAppbean.list.size(); i++) {


            System.out.println("\t");
            System.out.println("error:" + jsonAppbean.error);
            System.out.println("message:" + jsonAppbean.message);

            System.out.println("------商品信息------");
            System.out.println("rec_id:" + jsonAppbean.list.get(i).rec_id);
            System.out.println("brand_id:" + jsonAppbean.list.get(i).brand_id);
            System.out.println("category_id:" + jsonAppbean.list.get(i).category_id);
            System.out.println("goods_id:" + jsonAppbean.list.get(i).goods_id);
            System.out.println("goods_introduce:" + jsonAppbean.list.get(i).goods_introduce);
            System.out.println("goods_name:" + jsonAppbean.list.get(i).goods_name);
            System.out.println("goods_price:" + jsonAppbean.list.get(i).goods_price);

        }

    }
}
